a=int(input("请输入层数"))
for i in range(1,a+1):
    for k in range(1,a+1-i):
        print(end="    ")
    for j in range(1,i+1):
        print(f"{j}*{i} = {i * j}", end="    ")
    print("")


import calendar
calendar.prcal(2021,m=4)
